package cn.acheng1314.springboot2.entity

import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import com.baomidou.mybatisplus.extension.activerecord.Model
import java.util.*


/**
 * 楼盘信息表
 * @author cheng
 */
@TableName(value = "t_house_property")
class HouseProperty : Model<HouseProperty>() {
    @TableId
    var id: Long? = null
    /**
     * 区域id
     */
    @TableField(value = "area_id")
    var areaId: Int? = null

    /**
     * 区域描述信息
     */
    @TableField(value = "area_description")
    var areaDescription: String? = null

    /**
     * 楼盘名称
     */
    @TableField(value = "name")
    var name: String? = null

    /**
     * 物业类型
     */
    @TableField(value = "property_type")
    var propertyType: String? = null

    /**
     * 产权年限
     */
    @TableField(value = "house_period")
    var housePeriod: String? = null

    /**
     * 开发商
     */
    @TableField(value = "developer")
    var developer: String? = null

    /**
     * 占地面积
     */
    @TableField(value = "floor_area")
    var floorArea: Float? = null

    /**
     * 建筑面积
     */
    @TableField(value = "covered_area")
    var coveredArea: Float? = null

    /**
     * 容积率
     */
    @TableField(value = "plot_ratio")
    var plotRatio: String? = null

    /**
     * 绿化率
     */
    @TableField(value = "green_rate")
    var greenRate: String? = null

    /**
     * 总户数
     */
    @TableField(value = "total_house")
    var totalHouse: String? = null

    /**
     * 物业公司
     */
    @TableField(value = "property_company")
    var propertyCompany: String? = null

    /**
     * 物业费
     */
    @TableField(value = "property_price")
    var propertyPrice: String? = null

    /**
     * 位置信息{"longitude"：100.10,"latitude":100.10,"title":"位置描述"}
     */
    @TableField(value = "marker")
    var marker: String? = null

    /**
     * 交通描述
     */
    @TableField(value = "transportation")
    var transportation: String? = null

    /**
     * 楼盘描述
     */
    @TableField(value = "description")
    var description: String? = null

    /**
     * 楼层描述
     */
    @TableField(value = "level")
    var level: String? = null

    /**
     * 描述
     */
    @TableField(value = "remark")
    var remark: String? = null

    @TableField("create_time")
    var createTime: Date? = null
    @TableField(value = "update_time")
    var updateTime: Date? = null

    override fun toString(): String {
        return "HouseProperty(id=$id, areaId=$areaId, areaDescription=$areaDescription, name=$name, propertyType=$propertyType, housePeriod=$housePeriod, developer=$developer, floorArea=$floorArea, coveredArea=$coveredArea, plotRatio=$plotRatio, greenRate=$greenRate, totalHouse=$totalHouse, propertyCompany=$propertyCompany, propertyPrice=$propertyPrice, marker=$marker, transportation=$transportation, description=$description, level=$level, remark=$remark, createTime=$createTime, updateTime=$updateTime)"
    }


}
